.class Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;
.super Lcom/burstly/lib/component/networkcomponent/burstly/html/RedirectClickListener;
.source "ScriptBannerWebClient.java"


# static fields
.field private static final LOG:Lcom/burstly/lib/util/LoggerExt;

.field private static final TAG:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 20
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;->LOG:Lcom/burstly/lib/util/LoggerExt;

    .line 25
    const-class v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;->TAG:Ljava/lang/String;

    return-void
.end method

.method constructor <init>(Lcom/burstly/lib/component/AbstractAdaptor$AdaptorListenerWrapper;Ljava/lang/String;ZLcom/burstly/lib/component/networkcomponent/burstly/html/UrlProvider;)V
    .locals 0
    .parameter "adaptorListener"
    .parameter "networkName"
    .parameter "isFullscreen"
    .parameter "urlProvider"

    .prologue
    .line 37
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/RedirectClickListener;-><init>(Lcom/burstly/lib/component/AbstractAdaptor$AdaptorListenerWrapper;Ljava/lang/String;ZLcom/burstly/lib/component/networkcomponent/burstly/html/UrlProvider;)V

    .line 38
    return-void
.end method


# virtual methods
.method public onLoadResource(Landroid/webkit/WebView;Ljava/lang/String;)V
    .locals 5
    .parameter "view"
    .parameter "url"

    .prologue
    .line 42
    invoke-super {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/RedirectClickListener;->onLoadResource(Landroid/webkit/WebView;Ljava/lang/String;)V

    .line 43
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;->TAG:Ljava/lang/String;

    const-string v2, "onLoadResource: {0}"

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object p2, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 44
    return-void
.end method

.method public onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
    .locals 3
    .parameter "view"
    .parameter "url"

    .prologue
    .line 54
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v0

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;->getNetworkName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;->isFullscreen()Z

    move-result v2

    invoke-interface {v0, v1, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->didLoad(Ljava/lang/String;Z)V

    .line 55
    return-void
.end method

.method public onPageStarted(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V
    .locals 5
    .parameter "view"
    .parameter "url"
    .parameter "favicon"

    .prologue
    .line 48
    invoke-super {p0, p1, p2, p3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/RedirectClickListener;->onPageStarted(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V

    .line 49
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;->TAG:Ljava/lang/String;

    const-string v2, "onPageStarted: {0}"

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object p2, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 50
    return-void
.end method

.method public onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V
    .locals 4
    .parameter "view"
    .parameter "errorCode"
    .parameter "description"
    .parameter "failingUrl"

    .prologue
    .line 60
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Failed to load "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " because of "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 61
    .local v0, cause:Ljava/lang/String;
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;->TAG:Ljava/lang/String;

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v0, v3}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 62
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v1

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;->getNetworkName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptBannerWebClient;->isFullscreen()Z

    move-result v3

    invoke-interface {v1, v2, v3, v0}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->failedToLoad(Ljava/lang/String;ZLjava/lang/String;)V

    .line 63
    return-void
.end method
